package red.ouo.distributedtools.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import red.ouo.distributedtools.redis.message.config.MessageQueueConfig;
import red.ouo.distributedtools.redis.message.config.MessageQueueConfigInterface;
import red.ouo.distributedtools.redis.message.config.RedisMessageConfig;

import javax.annotation.Resource;

@Configuration
public class BeanFactory {
    @Resource
    RedisMessageConfig redisMessageConfig;

    @Bean
    public MessageQueueConfigInterface getConfig(){
        return new MessageQueueConfig(redisMessageConfig).queuePrefix("HAHAHAHA").registerQueue("test");
    }
}
